import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import UserRegister from '../views/UserRegister.vue'
import UserLogin from '../views/UserLogin.vue'
import Events from '../views/Events.vue'
import EventDetail from '../views/EventDetail.vue'
import EventCreate from '../views/EventCreate.vue'
import EventEdit from '../views/EventEdit.vue'
import Registrations from '../views/Registrations.vue'
import CheckIns from '../views/CheckIns.vue'

const routes = [
  { path: '/', component: Home },
  { path: '/register', component: UserRegister },
  { path: '/login', component: UserLogin },
  { path: '/events', component: Events },
  { path: '/events/create', component: EventCreate },
  { path: '/events/:id', component: EventDetail },
  { path: '/events/:id/edit', component: EventEdit },
  { path: '/registrations', component: Registrations },
  { path: '/checkins', component: CheckIns },
]

export default createRouter({
  history: createWebHistory(),
  routes
}) 